package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class OutletManager implements Serializable {
    
    @Id
    private String employeeID;
    private String name;
    private String email;
    private String password;
    
    public boolean create(String name, String email, String employeeID, String password){
        
        try{
            this.name = name;
            this.email = email;
            this.employeeID = employeeID;   
            this.password = password;
            
            return true;
            
        }catch(Exception ex){        
            return false;            
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmployeeID() {
        return employeeID;
    }

    public void setEmployeeID(String employeeID) {
        this.employeeID = employeeID;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
